<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>收款记录</title>
    <!-- Tell the browser to be responsive to screen width -->
    <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
    <!-- Bootstrap 3.3.7 -->
    <link rel="stylesheet" href="../../bower_components/bootstrap/dist/css/bootstrap.min.css">
    <!-- Font Awesome -->
    <link rel="stylesheet" href="../../bower_components/font-awesome/css/font-awesome.min.css">
    <!-- Ionicons -->
    <link rel="stylesheet" href="../../bower_components/Ionicons/css/ionicons.min.css">
    <!-- Theme style -->
    <link rel="stylesheet" href="../../dist/css/AdminLTE.min.css">
    <!-- AdminLTE Skins. Choose a skin from the css/skins
         folder instead of downloading all of them to reduce the load. -->
    <link rel="stylesheet" href="../../dist/css/skins/_all-skins.min.css">
    <!-- daterange picker -->
    <link rel="stylesheet" href="../../bower_components/bootstrap-daterangepicker/daterangepicker.css">
    <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
    <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
    <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
    <![endif]-->

    <!-- Google Font -->
    <link rel="stylesheet"
          href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,600,700,300italic,400italic,600italic">
    <link rel="stylesheet" href="../../dist/css/crmstyle.css">
    <style>

    </style>
</head>

<body class="hold-transition skin-blue sidebar-mini" >
<div class="wrapper" style="background: #fff;">

    <!-- 公共头部 begin-->
    <header class="main-header">
        <!-- Logo -->
        <a href="../../index.html" class="logo">
            <!-- mini logo for sidebar mini 50x50 pixels -->
            <span class="logo-mini">
          <b>龟米</b>
        </span>
            <!-- logo for regular state and mobile devices -->
            <span class="logo-lg">
          <img src="../../dist/img/icon_index.png" width="30" height="30" />
          <b>龟米管理系统</b>
        </span>
        </a>
        <!-- Header Navbar: style can be found in header.less -->
        <nav class="navbar navbar-static-top">
            <!-- Sidebar toggle button-->
            <a href="#" class="sidebar-toggle" data-toggle="push-menu" role="button">
                <span class="sr-only">Toggle navigation</span>
            </a>

            <div class="navbar-custom-menu">
                <ul class="nav navbar-nav">
                    <!-- User Account: style can be found in dropdown.less -->
                    <li class="dropdown user user-menu">
                        <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                            <img src="../../dist/img/user2-160x160.jpg" class="user-image" alt="User Image">
                            <span class="hidden-xs">Alexander Pierce</span>
                        </a>
                        <ul class="dropdown-menu">
                            <!-- User image -->
                            <li class="user-header" style="height: 110px;">
                                <img src="../../dist/img/user2-160x160.jpg" class="img-circle" alt="User Image">
                            </li>
                            <!-- Menu Body -->

                            <!-- Menu Footer-->
                            <li class="user-footer">
                                <div class="pull-left">
                                    <a href="#" class="btn btn-default btn-flat">Profile</a>
                                </div>
                                <div class="pull-right">
                                    <a href="#" class="btn btn-default btn-flat">Sign out</a>
                                </div>
                            </li>
                        </ul>
                    </li>
                    <!-- Control Sidebar Toggle Button -->
                    <li>
                        <a href="#" data-toggle="control-sidebar">
                            <i class="fa fa-gears"></i>
                        </a>
                    </li>
                </ul>
            </div>
        </nav>
    </header>
    <!-- 公共头部 end-->
    <!-- Left side column. contains the logo and sidebar -->
    <!-- 左侧列表导航 begin -->
    <aside class="main-sidebar">
        <!-- sidebar: style can be found in sidebar.less -->
        <section class="sidebar">
            <!-- Sidebar user panel -->
            <!-- sidebar menu: : style can be found in sidebar.less -->
            <ul class="sidebar-menu" data-widget="tree">
                <li class="header"></li>
                <li class="active">
                    <a href="../../index.html">
                        <img class="fa-index" src="../../dist/img/icon_nav_01.png"/>
                        <span>首页</span>
                    </a>
                </li>
                <li class="treeview">
                    <a href="#">
                        <img class="fa-datas" src="../../dist/img/icon_nav_02.png"/>
                        <span>数据分析</span>
                        <span class="pull-right-container">
                <i class="fa fa-angle-left pull-right"></i>
              </span>
                    </a>
                    <ul class="treeview-menu">
                        <li>
                            <a href="../dataanalysis/recordOfReceipts.html">
                                <i class="fa fa-circle-o"></i> 收账记录</a>
                        </li>
                        <li>
                            <a href="../dataanalysis/customerdata.html">
                                <i class="fa fa-circle-o"></i> 客户数据</a>
                        </li>

                    </ul>
                </li>

                <li class="treeview">
                    <a href="#">
                        <!--<i class="fa fa-client"></i>-->
                        <img class="fa-client" src="../../dist/img/icon_nav_03.png"/>
                        <span>客户管理</span>
                        <span class="pull-right-container">
                <i class="fa fa-angle-left pull-right"></i>
              </span>
                    </a>
                    <ul class="treeview-menu">
                        <li>
                            <a href="../customerManagement/myclient.html">
                                <i class="fa fa-circle-o"></i> 我的客户</a>
                        </li>
                        <li>
                            <a href="../customerManagement/platformCustomer.html">
                                <i class="fa fa-circle-o"></i> 平台客户</a>
                        </li>
                        <li>
                            <a href="../customerManagement/setting.html">
                                <i class="fa fa-circle-o"></i> 设置</a>
                        </li>
                    </ul>
                </li>
                <li class="treeview">
                    <a href="#">
                        <!--<i class="fa fa-templates"></i>-->
                        <img class="fa-templates" src="../../dist/img/icon_nav_04.png"/>
                        <span>营销管理</span>
                        <span class="pull-right-container">
                <i class="fa fa-angle-left pull-right"></i>
              </span>
                    </a>
                    <ul class="treeview-menu">
                        <li>
                            <a href="../marketingManagement/templatemessage.html">
                                <i class="fa fa-circle-o"></i> 模板消息</a>
                        </li>
                        <li>
                            <a href="../marketingManagement/templateShort.html">
                                <i class="fa fa-circle-o"></i> 短信推送</a>
                        </li>
                        <li>
                            <a href="javascript:">
                                <i class="fa fa-circle-o"></i> 系统消息</a>
                        </li>
                        <li>
                            <a href="../marketingManagement/dvertisingIndex.html">
                                <i class="fa fa-circle-o"></i> 广告投放</a>
                        </li>

                    </ul>
                </li>
            </ul>
        </section>
        <!-- /.sidebar -->
    </aside>
    <!-- 左侧列表导航 end -->

    <!-- Content Wrapper. Contains page content -->
    <div class="content-wrapper" style="background:#fff;min-height: 100%;">
        <!-- Content Header (Page header) -->
        <!-- Main content -->
        <section class="content">
            <div class="row">
                <!-- /.col -->
                <div class="nav-tabs-custom" style="box-shadow: none;">
                    <ul class="nav nav-tabs" style="margin-left: 25px;">
                        <li class="active">
                            <a href="#activity" data-toggle="tab">收账记录</a>
                        </li>
                        <li >
                            <a href="#timeline" data-toggle="tab">收账分析</a>
                        </li>
                    </ul>
                    <div class="tab-content recordtab_contents">
                        <div class=" tab-pane active" id="activity">
                            <!-- Post 收款记录-->
                            <div class="col-md-12">
                                <div class="post">
                                    <div class="top_times">
                                        <div class="timeselect1">
                                            <p class="p_txt">时间</p>
                                            <div class="input-group date">
                                                <div class="input-group-addon">
                                                    <i class="fa fa-calendar"></i>
                                                </div>
                                                <input type="text" class="form-control pull-right" id="datepicker">
                                            </div>
                                            <span class="line1"></span>
                                            <div class="input-group date">
                                                <div class="input-group-addon">
                                                    <i class="fa fa-calendar"></i>
                                                </div>
                                                <input type="text" class="form-control pull-right" id="datepicker2">
                                            </div>
                                        </div>
                                        <div class="btn_r">
                                            <span class="button1 active">近三天</span>
                                            <span class="button1">近七天</span>
                                            <span class="button1">近1月</span>
                                            <button class="button_search">查询</button>
                                        </div>
                                    </div>
                                </div>
                                <!-- /.post 收款记录 end-->
                                <div class="row">
                                    <div class="col-lg-3 col-xs-6 index_litems">
                                        <!-- small box -->
                                        <div class="small-box bg-gray-light">
                                            <div class="recordinner">
                                                <P>订单总额</P>
                                                <p class="txt2">
                                                    <span style="font-size: 12px;">￥</span>150
                                                    <i class="fa fa-fw fa-arrow-up"
                                                       style="font-size: 18px;color: #02c1b2"></i>
                                                </p>
                                            </div>
                                        </div>
                                    </div>
                                    <!-- ./col -->
                                    <div class="col-lg-3 col-xs-6 index_litems">
                                        <!-- small box -->
                                        <div class="small-box bg-gray-light">
                                            <div class="recordinner">
                                                <P>实收总额</P>
                                                <p class="txt2">
                                                    <span style="font-size: 12px;">￥</span>150
                                                    <i class="fa fa-fw fa-arrow-up"
                                                       style="font-size: 18px;color: #02c1b2"></i>
                                                </p>
                                            </div>
                                        </div>
                                    </div>
                                    <!-- ./col -->
                                    <div class="col-lg-3 col-xs-6 index_litems">
                                        <!-- small box -->
                                        <div class="small-box bg-gray-light">
                                            <div class="recordinner">
                                                <P>平均客单价</P>
                                                <p class="txt2">
                                                    <span style="font-size: 12px;">￥</span>150
                                                    <i class="fa fa-fw fa-arrow-up"
                                                       style="font-size: 18px;color: #02c1b2"></i>
                                                </p>
                                            </div>
                                        </div>
                                    </div>
                                    <!-- ./col -->
                                    <div class="col-lg-3 col-xs-6 index_litems">
                                        <!-- small box -->
                                        <div class="small-box bg-gray-light">
                                            <div class="recordinner">
                                                <P>复购率</P>
                                                <p class="txt2">
                                                    150%
                                                    <i class="fa fa-fw fa-arrow-down"
                                                       style="font-size: 18px;color: #f00"></i>
                                                </p>
                                            </div>
                                        </div>
                                    </div>
                                    <!-- ./col -->
                                </div>
                                <section class="content">
                                    <div class="row">
                                        <div class="col-md-12">
                                            <div class="box-body">
                                                <table class="table table-bordered record_table">
                                                    <tr>
                                                        <th>支付单号</th>
                                                        <th>支付时间</th>
                                                        <th>支付方式</th>
                                                        <th>支付宝/微信昵称</th>
                                                        <th>订单金额</th>
                                                        <th>到账金额</th>
                                                    </tr>
                                                    <tr>
                                                        <td>123123156</td>
                                                        <td>2018-05-27 12:21</td>
                                                        <td>支付宝</td>
                                                        <td>杂草林</td>
                                                        <td>39.6</td>
                                                        <td>30</td>
                                                    </tr>
                                                    <tr>
                                                        <td>123123156</td>
                                                        <td>2018-05-27 12:21</td>
                                                        <td>支付宝</td>
                                                        <td>杂草林</td>
                                                        <td>39.6</td>
                                                        <td>30</td>
                                                    </tr>
                                                    <tr>
                                                        <td>123123156</td>
                                                        <td>2018-05-27 12:21</td>
                                                        <td>支付宝</td>
                                                        <td>杂草林</td>
                                                        <td>39.6</td>
                                                        <td>30</td>
                                                    </tr>

                                                </table>
                                            </div>
                                            <!-- /.box -->
                                        </div>
                                    </div>
                                </section>
                            </div>

                        </div>

                        <!-- /.tab-pane -->
                        <div class="tab-pane" id="timeline">
                            <!-- The timeline 收账分析 -->
                            <div class="col-md-12">
                            <div class="row record_rows" style="background: #f4f5f9;">
                                <!-- select -->
                                <div class="form-group col-md-2">
                                    <select class="form-control">
                                        <option>option 1</option>
                                        <option>option 2</option>
                                        <option>option 3</option>
                                        <option>option 4</option>
                                        <option>option 5</option>
                                    </select>
                                </div>
                                <!-- Date range -->
                                <div class="form-group col-md-3">
                                    <div class="input-group">
                                        <div class="input-group-addon">
                                            <i class="fa fa-calendar"></i>
                                        </div>
                                        <input type="text" class="form-control pull-right" id="reservation">
                                    </div>
                                    <!-- /.input group -->
                                </div>
                                <button type="button" class="btn btn-block btn-success btn-flat btn_select">按时间对比
                                </button>
                            </div>
                            <div class="row">
                                <section class="col-lg-12 connectedSortable">
                                    <!-- Custom tabs (Charts with tabs)-->
                                    <div class="nav-tabs-custom">
                                        <!-- Tabs within a box -->
                                        <div class="tab-content no-padding">
                                            <!-- Morris chart - Sales -->
                                            <div class="chart tab-pane active" id="bmtjbb_canvas2"
                                                 style="position: relative; height: 270px;"></div>
                                        </div>
                                    </div>
                                    <!-- /.nav-tabs-custom -->
                                    <!-- Custom tabs (Charts with tabs)-->
                                    <div class="nav-tabs-custom" >
                                        <!-- Tabs within a box -->
                                        <ul class="nav nav-tabs bg_gray navtabul" style="height: 46px;">
                                            <li class="active">
                                                <a href="#tabchild1" data-toggle="tab">周报</a>
                                            </li>
                                            <li >
                                                <a href="#tabchild2" data-toggle="tab">月报</a>
                                            </li>
                                            <li class="pull-right header col-md-3">
                                                <div class="form-group col-md-12">
                                                    <div class="input-group">
                                                        <div class="input-group-addon">
                                                            <i class="fa fa-calendar"></i>
                                                        </div>
                                                        <input type="text" class="form-control pull-right"
                                                               id="reservation_weekly">
                                                    </div>
                                                    <!-- /.input group -->
                                                </div>
                                            </li>
                                        </ul>
                                        <div class="tab_content_box">
                                            <div class="tab-content-l col-md-12 active" id="tabchild1">
                                                <ul class="col-md-2 fl">
                                                    <li>
                                                        <span class="span_l">周收入最高</span>
                                                        <span class="span_r">5165</span>
                                                    </li>
                                                    <li>
                                                        <span class="span_l">新顾客</span>
                                                        <span class="span_r">12</span>
                                                    </li>
                                                    <li>
                                                        <span class="span_l">老顾客</span>
                                                        <span class="span_r">515156</span>
                                                    </li>
                                                    <li>
                                                        <span class="span_l">客单价</span>
                                                        <span class="span_r">1515</span>
                                                    </li>

                                                </ul>
                                                <div class="fr col-md-10">
                                                    <div class="chart " id="passengerFlow"
                                                         style="position: relative; height: 300px;"></div>
                                                </div>

                                            </div>
                                            <div class="tab-content tab-content-r col-md-12 "
                                                 id="tabchild2">
                                                <!-- Morris chart - Sales -->
                                                <ul class="col-md-2 fl">
                                                    <li>
                                                        <span class="span_l">月收入最高</span>
                                                        <span class="span_r">周五</span>
                                                    </li>
                                                    <li>
                                                        <span class="span_l">新顾客</span>
                                                        <span class="span_r">周五</span>
                                                    </li>
                                                    <li>
                                                        <span class="span_l">老顾客</span>
                                                        <span class="span_r">周五</span>
                                                    </li>
                                                    <li>
                                                        <span class="span_l">客单价</span>
                                                        <span class="span_r">周五</span>
                                                    </li>

                                                </ul>
                                                <div class="fr col-md-10">
                                                    <div class="chart" id="passengerFlow2"
                                                         style="position: relative; height: 300px;width: 100%;"></div>
                                                </div>
                                            </div>
                                        </div>

                                    </div>
                                    <!-- /.nav-tabs-custom -->
                                </section>
                            </div>
                            </div>
                            <!-- The timeline 收账分析 end -->
                        </div>
                        <!-- /.tab-pane -->
                    </div>
                    <!-- /.tab-content -->
                </div>
                <!-- /.nav-tabs-custom -->

                <!-- /.col -->

            </div>
            <!-- /.row -->
        </section>
        <!-- /.content -->
    </div>
    <!-- /.content-wrapper -->

    <div class="control-sidebar-bg"></div>
</div>
<!-- ./wrapper -->

<!-- jQuery 3 -->
<script src="../../bower_components/jquery/dist/jquery.min.js"></script>
<!-- Bootstrap 3.3.7 -->
<script src="../../bower_components/bootstrap/dist/js/bootstrap.min.js"></script>
<!-- FastClick -->
<script src="../../bower_components/fastclick/lib/fastclick.js"></script>
<!-- AdminLTE App -->
<script src="../../dist/js/adminlte.min.js"></script>
<!-- AdminLTE for demo purposes -->
<script src="../../dist/js/demo.js"></script>
<!-- date-range-picker -->
<script src="../../bower_components/moment/min/moment.min.js"></script>
<script src="../../bower_components/bootstrap-daterangepicker/daterangepicker.js"></script>
<!-- bootstrap datepicker -->
<script src="../../bower_components/bootstrap-datepicker/dist/js/bootstrap-datepicker.min.js"></script>
<script src="../../bower_components/bootstrap-datepicker/js/locales/bootstrap-datepicker.zh-CN.js"></script>

<!-- ChartJS -->
<script src="../../dist/js/echarts-all-3.js"></script>

<script>
    $(function () {
        $('#header').load('../common/header.html');
        //Date picker
        $('#datepicker').datepicker({
            autoclose: true,
            todayHighlight: true,
		    language:"zh-CN",// --语言设置
		    format:"yyyy-mm-dd" // --日期显示格式
        })
        $('#datepicker2').datepicker({
            autoclose: true,
            todayHighlight: true,
		    language:"zh-CN",// --语言设置
		    format:"yyyy-mm-dd" // --日期显示格式
        })
    })
    $('#reservation').daterangepicker({
    	language:"zh-CN",// --语言设置
		format:"yyyy-mm-dd" // --日期显示格式
    });
    $('#reservation_weekly').daterangepicker();
    $('.tab-content .top_times .btn_r > span').on('click',function(){
    	$(this).addClass('active').siblings().removeClass('active');
    })
</script>
<script type="text/javascript">
    // var businessTodayCharts = echarts.init(document.getElementById('line-charts')); // 今日营业情况 begin
    var passengerFlowCharts = echarts.init(document.getElementById('passengerFlow')); //今日客流情况
    var passengerFlow2 = echarts.init(document.getElementById('passengerFlow2'));
    var recentlymyChart = echarts.init(document.getElementById('bmtjbb_canvas2'));
    var colors = ['#02c1b2'];
    // 今日营业情况
    optionrecently = {
        color: colors,
        tooltip: {
            trigger: 'axis',
            axisPointer: { // 坐标轴指示器，坐标轴触发有效
                type: 'shadow' // 默认为直线，可选为：'line' | 'shadow'
            }
        },
        legend: {
            left: 'center',
            bottom: '8%',
            data: ['环保广场']
        },
        grid: {
            left: '3%',
            right: '4%',
            bottom: '30',
            top: '50',
            containLabel: true
        },
        xAxis: [{
            type: 'category',
            data: ['订单总额', '实收总额', '平均客单价', '订单数', '客户数', '复购率']
        }],
        yAxis: [{
            type: 'value'
        }],
        series: [{
            // name: '环保广场',
            type: 'bar',
            barWidth: 15,
            stack: '广告',
            data: [320, 332, 301, 334, 390, 330]
        }

        ]
    };
    option_passengerFlow_week = {
        color: colors,
        tooltip: {
            trigger: 'none',
            axisPointer: {
                type: 'cross'
            }
        },
        grid: {
            top: 20,
            bottom: 50,
            left: '1%',
            right: '1%',
        },
        xAxis: [{
            type: 'category',
            axisTick: {
                alignWithLabel: true
            },
            axisLine: {
                onZero: false,
                lineStyle: {
                    color: colors[0]
                }
            },
            axisPointer: {
                label: {
                    formatter: function (params) {
                        return '今日营业情况  ' + params.value + '：' + params.seriesData[0].data;
                    }
                }
            },
            data: ["周一", "周二", "周三", "周四", "周五", "周六", "周日"]
        },],
        yAxis: [{
            type: 'value'
        }],
        series: [{
            // name: '2016 降水量',
            type: 'line',
            smooth: true,
            data: [560, 800, 1300, 300, 200, 400, 800]
        }]
    };
    // 为echarts对象加载数据
    option_passengerFlow_moon = {
        color: colors,
        tooltip: {
            trigger: 'none',
            axisPointer: {
                type: 'cross'
            }
        },
        grid: {
            top: 20,
            bottom: 50,
            left: '1%',
            right: '1%',
        },
        xAxis: [{
            type: 'category',
            axisTick: {
                alignWithLabel: true
            },
            axisLine: {
                onZero: false,
                lineStyle: {
                    color: colors[0]
                }
            },
            axisPointer: {
                label: {
                    formatter: function (params) {
                        return '今日营业情况  ' + params.value + '：' + params.seriesData[0].data;
                    }
                }
            },
            data: ["1", "2", "3", "4", "5", "6", "7","8", "9", "10","21", "22", "23", "24", "25", "26", "27","28", "29", "30","31", ]
        },],
        yAxis: [{
            type: 'value'
        }],
        series: [{
            // name: '2016 降水量',
            type: 'line',
            smooth: true,
            data: [560, 800, 1300, 300, 200, 400, 800,560, 800, 1300,560, 800, 1300, 300, 200, 400, 800,560, 800, 1300,560, 800, 1300, 300, 200, 400, 800,560, 800, 1300,100]
        }]
    };

    recentlymyChart.setOption(optionrecently);
    passengerFlowCharts.setOption(option_passengerFlow_week); //今日客流情况
    passengerFlow2.setOption(option_passengerFlow_moon);
    // 今日营业情况 begin
</script>
</body>

</html>